home *** CD-ROM | disk | FTP | other *** search
- VERSION 5.00
- Begin VB.Form frmBolt3D
- BorderStyle = 1 'Fixed Single
- Caption = "3D Bolts and Screws"
- ClientHeight = 3825
- ClientLeft = 45
- ClientTop = 330
- ClientWidth = 6330
- LinkTopic = "Form1"
- MaxButton = 0 'False
- MinButton = 0 'False
- ScaleHeight = 3825
- ScaleWidth = 6330
- StartUpPosition = 1 'CenterOwner
- Begin VB.OptionButton Surf_Solid
- Caption = "Surface"
- Height = 255
- Left = 3000
- TabIndex = 11
- Top = 2400
- Width = 975
- End
- Begin VB.OptionButton Surf_Solid1
- Caption = "Solid"
- Height = 255
- Left = 3000
- TabIndex = 10
- Top = 2760
- Value = -1 'True
- Width = 855
- End
- Begin VB.CommandButton cmdCancel
- Caption = "Cancel"
- Height = 375
- Left = 2880
- TabIndex = 9
- Top = 3270
- Width = 1335
- End
- Begin VB.CommandButton cmdOK
- Caption = "OK"
- Height = 375
- Left = 4800
- TabIndex = 8
- Top = 3270
- Width = 1335
- End
- Begin VB.TextBox txtThread
- Height = 288
- Left = 1800
- TabIndex = 7
- Top = 3000
- Width = 735
- End
- Begin VB.ListBox List1
- Height = 1620
- ItemData = "frmBolt3D.frx":0000
- Left = 120
- List = "frmBolt3D.frx":000D
- TabIndex = 2
- Top = 450
- Width = 2415
- End
- Begin VB.TextBox txtdd
- Height = 285
- Left = 1800
- TabIndex = 1
- Top = 2280
- Width = 735
- End
- Begin VB.TextBox txtLen
- Height = 285
- Left = 1800
- TabIndex = 0
- Top = 2640
- Width = 735
- End
- Begin VB.Frame Frame1
- Caption = "3D"
- Height = 975
- Left = 2880
- TabIndex = 12
- Top = 2160
- Width = 1335
- End
- Begin VB.Label Label6
- Alignment = 1 'Right Justify
- Caption = "Length of thread (Lt) :"
- Height = 255
- Left = 120
- TabIndex = 6
- Top = 3000
- Width = 1575
- End
- Begin VB.Label Label7
- Alignment = 1 'Right Justify
- Caption = "Length (L) :"
- Height = 255
- Left = 720
- TabIndex = 5
- Top = 2640
- Width = 975
- End
- Begin VB.Label Label8
- Alignment = 1 'Right Justify
- Caption = "Diameter (d) :"
- Height = 255
- Left = 720
- TabIndex = 4
- Top = 2280
- Width = 975
- End
- Begin VB.Image PicPreview
- BorderStyle = 1 'Fixed Single
- Height = 1950
- Left = 2880
- Stretch = -1 'True
- Top = 120
- Width = 3300
- End
- Begin VB.Label Label4
- Caption = "Bolt Type :"
- Height = 255
- Left = 120
- TabIndex = 3
- Top = 120
- Width = 975
- End
- Attribute VB_Name = "frmBolt3D"
- Attribute VB_GlobalNameSpace = False
- Attribute VB_Creatable = False
- Attribute VB_PredeclaredId = True
- Attribute VB_Exposed = False
- '/******************************************************************/
- '/* */
- '/* TurboCAD for Windows */
- '/* Copyright (c) 1993 - 2001 */
- '/* International Microcomputer Software, Inc. */
- '/* (IMSI) */
- '/* All rights reserved. */
- '/* */
- '/******************************************************************/
- ' Storage for read-only property indicating whether
- ' or not the dialog box was cancelled. Default is
- ' False. Note that the declaration is Private, so
- ' that the value cannot be set from the OLE client
- ' application. The client reads the value using the
- ' DialogCancelled property.
- Private blnDialogCanceled As Boolean
- ' Read-only property indicating cancellation of the
- ' dialog.
- Property Get DialogCanceled() As Boolean
- DialogCanceled = blnDialogCanceled
- End Property
- Private Sub cmdCancel_Click()
- ' Set the value of the read-only property that
- ' tells the caller the dialog was cancelled.
- blnDialogCanceled = True
- Me.Hide
- End Sub
- Private Sub cmdOK_Click()
- TypeB = List1.Text
- Me.Hide
- End Sub
- Private Sub Form_Load()
- Dim i%, iDef%
- For i = 0 To List1.ListCount - 1
- If List1.List(i) = TypeB Then iDef = i
- Next i
- List1.ListIndex = iDef
- If List1.Text = "HexBolt" Then PicPreview.Picture = LoadResPicture(101, 0)
- If List1.Text = "SlottedBolt" Then PicPreview.Picture = LoadResPicture(102, 0)
- If List1.Text = "HexFlScrew" Then PicPreview.Picture = LoadResPicture(103, 0)
- End Sub
- Private Sub List1_Click()
- If List1.Text = "HexBolt" Then PicPreview.Picture = LoadResPicture(101, 0)
- If List1.Text = "SlottedBolt" Then PicPreview.Picture = LoadResPicture(102, 0)
- If List1.Text = "HexFlScrew" Then PicPreview.Picture = LoadResPicture(103, 0)
- End Sub
- Private Sub Surf_Solid_Click()
- Surf_Solid1.Value = False
- End Sub
- Private Sub Surf_Solid1_Click()
- Surf_Solid.Value = False
- End Sub
-